package com.example.Annocation.compentScann;


import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description TODO
 * @Date 2024/5/14 18:48
 * @Created by houjunfeng
 */
public class CompentScannTest {
    @Test
    public void getCompentScann(){
        ApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(CompentScannConfiguration.class);
        String[] definitionNames =  annotationConfigApplicationContext.getBeanDefinitionNames();
        for (String definitionName: definitionNames){
            System.out.println(definitionName);
        }
    }
}
